import request from '../../utils/request'

export const reqGetSearchData = (params) => request.get('/xhr/search/search.json', {
  params,
})
export const reqGetSearchAutoComplete = (keywordPrefix) => request.post('/xhr/search/searchAutoComplete.json', {
  keywordPrefix
}, {
  headers: {
    'content-type': 'application/x-www-form-urlencoded'
  }
})
